]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
iconGrid: Remove dead code
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 18 May 2020 16:51:46 +0000 (13:51 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 19 May 2020 19:40:49 +0000 (16:40 -0300)
Remove unused methods from IconGrid.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1265

js/ui/iconGrid.js

index 69c3fa52d4ef65d22c53e92f73f6fa6d0de42c19..2796a661312b3826ba4dda08e0f88752e8fad33a 100644 (file)
@@ -736,16 +736,6 @@ var IconGrid = GObject.registerClass({
         return usedWidth + this.leftPadding + this.rightPadding;
     }
 
-    removeAll() {
-        this._items = [];
-        this.remove_all_children();
-    }
-
-    destroyAll() {
-        this._items = [];
-        this.destroy_all_children();
-    }
-
     addItem(item, index) {
         if (!(item.icon instanceof BaseIcon))
             throw new Error('Only items with a BaseIcon icon property can be added to IconGrid');
@@ -761,14 +751,6 @@ var IconGrid = GObject.registerClass({
         this.remove_child(item);
     }
 
-    getItemAtIndex(index) {
-        return this.get_child_at_index(index);
-    }
-
-    visibleItemsCount() {
-        return this.get_children().filter(c => c.is_visible()).length;
-    }
-
     setSpacing(spacing) {
         this._fixedSpacing = spacing;
     }